package com.hxzy.controller.vue.merchandiser.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@ToString
public class MerchandiserPwdReq {
    @NotNull(message = "主键不能为空")
    private Long id;

    //新密码
    @Length(min = 4,max = 30,message = "密码长度必须在4-30个字符之间")
    @NotBlank(message = "新密码不能为空")
    private String newPwd;

    //确认密码
    @NotBlank(message = "确认密码不能为空")
    private String rePwd;
}
